package day10;

public class D10_3 {
    public static void main(String[] args) {
        Basestudent basestudent=new Basestudent("张三",18);
        basestudent.learn();
        basestudent.LearnJavaSE();
        Jobstudent jobstudent=new Jobstudent("李四",20);
        jobstudent.learn();
        jobstudent.LearnAndroid();
    }
}
class Student{
    private String name;
    private int age;
    public Student(){

    }
    public Student(String name,int age){
        this.age=age;
        this.name=name;
    }
    public void learn(){
        System.out.println("学习");
    }
}
class Basestudent extends Student{
    public Basestudent(){
        super();
    }
    public Basestudent(String name, int age) {
        super(name, age);
    }
    public void LearnJavaSE(){
        System.out.println("学JavaSE");
    }
}
class Jobstudent extends Student{
    public Jobstudent(){
        super();
    }
    public Jobstudent(String name, int age) {
        super(name, age);
    }
    public void LearnAndroid(){
        System.out.println("学Android");
    }
}
